package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.domain.ActivityDO;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 活动信息管理 Mapper 接口
 * </p>
 * @author 34448
 */
@Mapper
public interface ActivityMapper extends BaseMapper<ActivityDO> {

    @Select("SELECT activity_name, COUNT(activity_id) AS count FROM activities GROUP BY activity_name")
    List<Map<String, Object>> countActivityPublications();
}